package cn.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Goods entity. @author MyEclipse Persistence Tools
 */

public class Goods implements java.io.Serializable {

	// Fields

	private Integer id;
	private User user;
	private Brand brand;
	private String goodsname;
	private Float price;
	private String remark;
	private Integer stock;
	private Integer isDelete;
	private Integer type;
	private String img;
	private Set ordergoodses = new HashSet(0);
	private Set carts = new HashSet(0);

	// Constructors

	/** default constructor */
	public Goods() {
	}

	/** full constructor */
	public Goods(User user, Brand brand, String goodsname, Float price,
			String remark, Integer stock, Integer isDelete, Integer type,
			String img, Set ordergoodses, Set carts) {
		this.user = user;
		this.brand = brand;
		this.goodsname = goodsname;
		this.price = price;
		this.remark = remark;
		this.stock = stock;
		this.isDelete = isDelete;
		this.type = type;
		this.img = img;
		this.ordergoodses = ordergoodses;
		this.carts = carts;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Brand getBrand() {
		return this.brand;
	}

	public void setBrand(Brand brand) {
		this.brand = brand;
	}

	public String getGoodsname() {
		return this.goodsname;
	}

	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}

	public Float getPrice() {
		return this.price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getStock() {
		return this.stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getIsDelete() {
		return this.isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getImg() {
		return this.img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public Set getOrdergoodses() {
		return this.ordergoodses;
	}

	public void setOrdergoodses(Set ordergoodses) {
		this.ordergoodses = ordergoodses;
	}

	public Set getCarts() {
		return this.carts;
	}

	public void setCarts(Set carts) {
		this.carts = carts;
	}

}